package com.kaifamiao.date1110;

import java.util.logging.Logger;

/**
 * 1、被 abstract 所修饰的 class 就是 抽象类 
 * 2、专门为类继承体系顶端设计的类通常被设计为抽象类 
 * 3、抽象类不可以直接实例化 比如 new Human() 会拒绝编译
 */
public abstract class Human {

	private static final Logger logger = Logger.getLogger(Human.class.getName());

	private String name;

	static {
		logger.info("Human");
	}

	{
		logger.info("Human");
	}

	public Human() {
		super();
		logger.info("Human()");
	}

	public Human(String name) {
		super();
		logger.info("Human(String)");
		this.name = name;
	}

	
	public String getName() {
		return name;
	}
	

	public void setName(String name) {
		this.name = name;
	}

	public static void main(String[] args) {
		Human h = null ;
		System.out.println( h );
		// h = new Human(); // Cannot instantiate the type Human
	}
}
